package hong.jun;


import hong.jun.dao.RoleDao;
import hong.jun.data.role.Role;
import hong.jun.service.impl.RoleServiceImpl;

import java.util.List;

/**
 * @Description:
 * @Author: yanghongjun
 * @Date: 2023/11/17
 **/
public class Test {
    public static void main(String[] args) {
        //PlayerDao dao = PlayerDao.getInstance();
        /*Role role = new Role();
        role.setRoleId(3);
        role.setName("大红");
        dao.save(role);*/
        /*QueryResults<Player> players = dao.find();
        for (Player r : players) {
            System.out.println(r.toString());
        }*/
        /*RoleDao dao = RoleDao.getInstance();
        RoleDao dao2 = (RoleDao)MongoMgr.getInstance().getDao(Role.class);
        System.out.println(1);*/
        RoleServiceImpl dao = RoleServiceImpl.getInstance();
        Role role = dao.selectOneData(0l);
        System.out.println(role);
    }
}
